package com.asl.api.controller;

import com.asl.api.service.TrackingProxyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.UnsupportedEncodingException;

/**
 * @author 482944566@qq.com
 * @version 1.0
 * @date 2025-05-14
 */
@RestController
@RequestMapping("/api/tracking")
public class TrackingController {

    @Autowired
    private TrackingProxyService trackingService;

    @PostMapping("/getStatus")
    public Object getTrackingStatus(@RequestParam("hbl_no") String hblNo) throws UnsupportedEncodingException {
        Object trackingStatus = trackingService.getTrackingStatus(hblNo);
        return trackingStatus;
    }
}
